package com.example.tse.rbhttpservice.service.moments.model;

import java.util.List;
import java.util.ArrayList;
import com.example.tse.rbhttpservice.service.RudderResponse;


//import com.rbyair.services.moments.model.MomentsMomentsGetListTags;
/**
 * 用于首页、我的主页、活动的帖子，我的主页需要传递memberId（为空为当前用户），活动需要传递activityId
 * @author wliu
 * edit tse
 */
public class MomentsMomentsGetList extends RudderResponse{
    
    private String momentId = "";
		
    
    private String memberId = "";
		
    
    private String nickname = "";
		
    
    private String avatar = "";
		
    
    private String createTime = "";
		
    
    private String mainPic = "";
		
    
    private String content = "";
		
    
    private String likeNum = "";
		
    
    private String isFollowed = "";
		
    
    private String isLiked = "";
		
    
    private String shareLink = "";
		
    
    private String shareTitle = "";
		
    
    private String shareDescription = "";
		
    
    private List<MomentsMomentsGetListTags> tags = new ArrayList<MomentsMomentsGetListTags>();
		
    
    private String isDeleted = "";
		
	
    /**
     * @return momentId
     */	
    public String getMomentId() { 
	    return this.momentId;
    };
	
	/**
     * @return momentId
     */	
    public void setMomentId(String momentId) { 
        this.momentId = momentId;
    };
    
    /**
     * @return memberId
     */	
    public String getMemberId() { 
	    return this.memberId;
    };
	
	/**
     * @return memberId
     */	
    public void setMemberId(String memberId) { 
        this.memberId = memberId;
    };
    
    /**
     * @return nickname
     */	
    public String getNickname() { 
	    return this.nickname;
    };
	
	/**
     * @return nickname
     */	
    public void setNickname(String nickname) { 
        this.nickname = nickname;
    };
    
    /**
     * @return avatar
     */	
    public String getAvatar() { 
	    return this.avatar;
    };
	
	/**
     * @return avatar
     */	
    public void setAvatar(String avatar) { 
        this.avatar = avatar;
    };
    
    /**
     * @return createTime
     */	
    public String getCreateTime() { 
	    return this.createTime;
    };
	
	/**
     * @return createTime
     */	
    public void setCreateTime(String createTime) { 
        this.createTime = createTime;
    };
    
    /**
     * @return mainPic
     */	
    public String getMainPic() { 
	    return this.mainPic;
    };
	
	/**
     * @return mainPic
     */	
    public void setMainPic(String mainPic) { 
        this.mainPic = mainPic;
    };
    
    /**
     * @return content
     */	
    public String getContent() { 
	    return this.content;
    };
	
	/**
     * @return content
     */	
    public void setContent(String content) { 
        this.content = content;
    };
    
    /**
     * @return likeNum
     */	
    public String getLikeNum() { 
	    return this.likeNum;
    };
	
	/**
     * @return likeNum
     */	
    public void setLikeNum(String likeNum) { 
        this.likeNum = likeNum;
    };
    
    /**
     * @return isFollowed
     */	
    public String getIsFollowed() { 
	    return this.isFollowed;
    };
	
	/**
     * @return isFollowed
     */	
    public void setIsFollowed(String isFollowed) { 
        this.isFollowed = isFollowed;
    };
    
    /**
     * @return isLiked
     */	
    public String getIsLiked() { 
	    return this.isLiked;
    };
	
	/**
     * @return isLiked
     */	
    public void setIsLiked(String isLiked) { 
        this.isLiked = isLiked;
    };
    
    /**
     * @return shareLink
     */	
    public String getShareLink() { 
	    return this.shareLink;
    };
	
	/**
     * @return shareLink
     */	
    public void setShareLink(String shareLink) { 
        this.shareLink = shareLink;
    };
    
    /**
     * @return shareTitle
     */	
    public String getShareTitle() { 
	    return this.shareTitle;
    };
	
	/**
     * @return shareTitle
     */	
    public void setShareTitle(String shareTitle) { 
        this.shareTitle = shareTitle;
    };
    
    /**
     * @return shareDescription
     */	
    public String getShareDescription() { 
	    return this.shareDescription;
    };
	
	/**
     * @return shareDescription
     */	
    public void setShareDescription(String shareDescription) { 
        this.shareDescription = shareDescription;
    };
    
    /**
     * @return tags
     */	
    public List<MomentsMomentsGetListTags> getTags() { 
	    return this.tags;
    };
	
	/**
     * @return tags
     */	
    public void setTags(List<MomentsMomentsGetListTags> tags) { 
        this.tags = tags;
    };
    
    /**
     * @return isDeleted
     */	
    public String getIsDeleted() { 
	    return this.isDeleted;
    };
	
	/**
     * @return isDeleted
     */	
    public void setIsDeleted(String isDeleted) { 
        this.isDeleted = isDeleted;
    };
    
	
        
    private static void filterFor(MomentsMomentsGetListTags moments) {
        if (moments.getX() == null) {
            moments.setX("");
        }
        if (moments.getY() == null) {
            moments.setY("");
        }
        if (moments.getTitle() == null) {
            moments.setTitle("");
        }
    }
        
    public static void filter(MomentsMomentsGetList moments) {
        if (moments.getMomentId() == null) {
            moments.setMomentId("");
        }
        if (moments.getMemberId() == null) {
            moments.setMemberId("");
        }
        if (moments.getNickname() == null) {
            moments.setNickname("");
        }
        if (moments.getAvatar() == null) {
            moments.setAvatar("");
        }
        if (moments.getCreateTime() == null) {
            moments.setCreateTime("");
        }
        if (moments.getMainPic() == null) {
            moments.setMainPic("");
        }
        if (moments.getContent() == null) {
            moments.setContent("");
        }
        if (moments.getLikeNum() == null) {
            moments.setLikeNum("");
        }
        if (moments.getIsFollowed() == null) {
            moments.setIsFollowed("");
        }
        if (moments.getIsLiked() == null) {
            moments.setIsLiked("");
        }
        if (moments.getShareLink() == null) {
            moments.setShareLink("");
        }
        if (moments.getShareTitle() == null) {
            moments.setShareTitle("");
        }
        if (moments.getShareDescription() == null) {
            moments.setShareDescription("");
        }
        if (moments.getTags() == null) {
            moments.setTags(new ArrayList<MomentsMomentsGetListTags>());
        } else {
            for (MomentsMomentsGetListTags item : moments.getTags()) {
                filterFor(item);
            }
        }
        if (moments.getIsDeleted() == null) {
            moments.setIsDeleted("");
        }
    }
}
